home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / IE7proSetup_2.3.exe / userscripts / MyspaceCustomStyleRemover.ieuser.js < prev    next >
Text File  |  2007-11-20  |  732b  |  25 lines

  1. // ==UserScript==
  2. // @name          Myspace custom style remover
  3. // @namespace     http://www.moosoft.com/greasemonkey
  4. // @include       http://myspace.com/*
  5. // @include       http://*.myspace.com/*
  6. // @description   Hide annoying custom styles on myspace pages
  7. // @exclude      http://blog.myspace.com/*
  8. // ==/UserScript==
  9. //
  10. // Author: Daniel Otis  http://www.moosoft.com
  11. //  
  12. //  Version: 1.0
  13. //    1.1 - total rewrite
  14. //    1.0 - first version
  15.  
  16. (function () {
  17.     //remove user styles
  18.     var badstyles = document.getElementsByTagName("style");
  19.     var i = badstyles.length - 1;
  20.     while (i >= 0) {
  21.           badstyles[i] = badstyles[i].parentElement.removeChild(badstyles[i]);
  22.           i--;
  23.     }
  24. }) ();
  25.